/*
 * Merger.h
 *
 *  Created on: Mar 30, 2011
 *      Author: s88900
 */

#ifndef MERGER_H_
#define MERGER_H_

#include "conc/Thread.h"
#include "conc/Mutex.h"
#include "IOController.h"

using namespace std;

class Merger: public Thread {
private:
	int Mid;
	char buffer[3];
	IOController *ioc;
	Mutex* lock[3];
public:
	Merger(int, IOController*);
	void run();
	void newImage(int, char);
	void send();
	virtual ~Merger();
};

#endif /* MERGER_H_ */
